package com.ticket.filter;


import com.ticket.api.service.TbUserInfoService;
import com.ticket.db.entity.TblUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.servlet.annotation.WebFilter;

@Component
@WebFilter(urlPatterns = "/*", filterName = "baseAuthFilter")
public class ServiceAuthFilter extends BaseAuthFilter {
	@Autowired
	TbUserInfoService userInfoService;
	@Override
	public TblUserInfo getUserInfo(String userToken){
		TblUserInfo userInfo =userInfoService.findTblUserInfoById(userToken);
		return userInfo;
	}

}
